/**
 * @description 数据字典类型管理
 * @author zhu_liangyu
 * @since 2021/12/06
 */

import { OrgServiceApi } from "./_org";
import { AxiosResponse } from "axios";
import { objectToUrlParams } from "/@/utils/common";
import service from "/@/utils/request";
import { SYSTEM_CONFIG } from "/@/config/system";
// 自定义修改保存方法
class DictionaryTypeServiceApi extends OrgServiceApi {
  saveDicAndDetail(bean: any, params?: any): Promise<AxiosResponse<any>> {
    let url = this.baseUrl + "/saveDicAndDetail";
    url += objectToUrlParams(params, true);
    return service.post(url, bean);
  }
}
const dictionaryTypeServiceApi = new DictionaryTypeServiceApi("/DictionaryTypeService");

export default dictionaryTypeServiceApi;
